<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
if ($_GET[type]=='1'){
$news_title='新闻';
////
if($_GET[muid]=='3'){
$nums=26;
}else{
$nums=69;
}
////
}elseif($_GET[type]=='3'){
$news_title='公告';
//$nums=27;
if($_GET[muid]=='3'){
$nums=27;
}else{
$nums=71;
}
}elseif($_GET[type]=='4'){
$news_title='通知';
//$nums=28;
if($_GET[muid]=='3'){
$nums=28;
}else{
$nums=70;
}
}elseif($_GET[type]=='5'){
$news_title='大事记';
//$nums=29;
if($_GET[muid]=='3'){
$nums=29;
}else{
$nums=68;
}
}elseif($_GET[type]=='6'){
$news_title='电子期刊';
//$nums=30;
if($_GET[muid]=='3'){
$nums=30;
}else{
$nums=67;
}
}else{
}
//====================

global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$_GET[muid]."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.subject.value=="")
   { alert("标题不能为空！");
     document.save.subject.focus();
     return (false);
   }
   if(document.save.content.value=="")
   { alert("内容不能为空！");
     document.save.content.focus();
     return (false);
   }
   
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>
<form name="save" method="post" action="?ac=edit&do=save&fileurl=news&type=<?=$_GET[type]?>&muid=<?=$_GET[muid]?>">
	<input type="hidden" name="savetype" value="edit" />
	<input type="hidden" name="id" value="<?=$blog['id']?>" />
	<input type="hidden" name="type" value="<?=$_GET['type']?>" />
	<input type="hidden" name="muid" value="<?=$_GET[muid]?>" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center">发布<?=$news_title?></td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
 <?php if($_GET[type]=='2'){?>
    <tr>
      <td nowrap class="TableData" width="15%"> 缩略图：</td>
      <td class="TableData">
	  <input type="text" name="pic" class="BigInput" size="30" value="<?=$blog['pic']?>" /> <a href="#" onClick="window.open ('admin.php?ac=uploadadd&fileurl=public&name=pic', 'newwindow', 'height=200, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')">+上传图片</a></td>
    </tr>
	<?php }?>
    <tr>
      <td nowrap class="TableData"  width="15%"> 标题：<? get_user_add_help()?></td>
      <td class="TableData"> <input name="subject" type="text" class="BigInput" id="subject" value="<?=$blog['subject']?>" size="60" />
      </td>
    </tr>
</table>
<table  width="90%" style="border-left:#CCCCCC solid 1px;border-right:#CCCCCC solid 1px;border-bottom:#CCCCCC solid 1px;">
    <tr>
      <td width="15%"  style="border-right:#CCCCCC solid 1px;">&nbsp;内容：<? get_user_add_help()?></td>
      <td width="85%" style="padding-top:10px; padding-bottom:10px; padding-left:3px;"><script charset="utf-8" src="eweb/kindeditor.js"></script>
<script>
        KE.show({
                id : 'content'
        });
</script>
		<textarea name="content" cols="70" rows="12" class="input" style="width:600px;height:300px;"><?=$blog['content']?></textarea>	 
      </td>
    </tr>
</table>
  <table class="TableBlock no-top-border" width="90%"> 
 
     <tr>
      <td nowrap class="TableData" width="15%"> 附件设置：</td>
      <td class="TableData"><input type="text" name="appendix" class="BigInput" size="30" value="<?=$blog['appendix']?>" /><a href="#" onClick="window.open ('admin.php?ac=uploadadd&fileurl=public&name=appendix', 'newwindow', 'height=200, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')">+上传</a></td>
    </tr>
	<tr>
      <td nowrap class="TableData" width="15%"> 分类设置：</td>
      <td class="TableData"><select name="category" id="category">
			<option value="0" selected="selected">选择类别</option>
			<?=get_news_type($blog['type'],$_GET[type])?>
			</select>
</td>
    </tr>
	
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="button" name="Submit" value="保存信息" class="BigButton" onclick="sendForm();"> 
        
      </td>
    </tr>
  </table>
</form>
</div>
</div>

 
</body>
</html>
